package cn.com.dealme.domain.model.exception;

public class UserException extends DomainModelException {

	private static final long serialVersionUID = 1L;
	
	public static final int ACCOUNT_INFO_NULL_EXCEPTION = 1;
	public static final int ROLE_NULL_EXCEPTION = 2;
	public static final int UNIVERSITY_NULL_EXCEPTION = 3;
	
	public static final int PUBLISH_COMMODITY_NULL_EXCEPTION = 4;

	private int state;
	
	public UserException(int state) {
		this(state, null);
	}
	
	public UserException(int state, String msg) {
		super(msg);
		this.state = state;
	}

	public int getState() {
		return state;
	}
}
